package com.core.zyyz.amc.modules.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.core.common.annotation.Excel;
import com.core.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 主页信息配置对象 amc_system_mainlist_d
 *
 * @author core
 * @date 2024-11-13
 */
public class AmcSystemMainlistD extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主页配置id */
    private String mainlistId;

    /** 业务节点 */
    @Excel(name = "业务节点")
    private String baseBusinessNode;

    /** 控件标题 */
    @Excel(name = "控件标题")
    private String mainlistLabel;

    /** 表名 */
    @Excel(name = "表名")
    private String mainlistTable;

    /** 控件name */
    @Excel(name = "控件name")
    private String mainlistName;

    /** 控件类型 */
    @Excel(name = "控件类型")
    private String mainlistType;

    /** 所用系统字典 */
    @Excel(name = "所用系统字典")
    private String mainlistDict;

    /** 是否必填 */
    @Excel(name = "是否必填")
    private String mainlistIsvalid;

    /** 排序 */
    @Excel(name = "排序")
    private Long mainlistNum;

    /** 后台接口地址 */
    @Excel(name = "后台接口地址")
    private String mainlistUrl;

    /** 额外校验 */
    @Excel(name = "额外校验")
    private String mainlistMorevalid;

    /** 是否作为条件（0-否，1-是） */
    @Excel(name = "是否作为条件", readConverterExp = "0=-否，1-是")
    private String mainlistIscondition;

    /** 条件类型（amc,conditionType） */
    @Excel(name = "条件类型", readConverterExp = "a=mc,conditionType")
    private String mainlistCondition;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String i18nKey;

    /** 其他属性 */
    @Excel(name = "其他属性")
    private String otherAttr;

    /** 联动属性 */
    @Excel(name = "联动属性")
    private String eventsAttr;

    /** 是否合并(Excel合并单元格) */
    @Excel(name = "是否合并(Excel合并单元格)")
    private String mainlistMerger;

    //DTO
    @TableField(exist = false)//这表示该字段在数据库表中不存在。当使用MyBatis-Plus的自动注入SQL语句功能时，会忽略这个字段，不会将其包含在SQL查询语句中。
    private String baseBusinessNodeName;//页面功能字段展示

    public String getBaseBusinessNodeName() {
        return baseBusinessNodeName;
    }

    public void setBaseBusinessNodeName(String baseBusinessNodeName) {
        this.baseBusinessNodeName = baseBusinessNodeName;
    }

    public void setMainlistId(String mainlistId)
    {
        this.mainlistId = mainlistId;
    }

    public String getMainlistId()
    {
        return mainlistId;
    }
    public void setBaseBusinessNode(String baseBusinessNode)
    {
        this.baseBusinessNode = baseBusinessNode;
    }

    public String getBaseBusinessNode()
    {
        return baseBusinessNode;
    }
    public void setMainlistLabel(String mainlistLabel)
    {
        this.mainlistLabel = mainlistLabel;
    }

    public String getMainlistLabel()
    {
        return mainlistLabel;
    }
    public void setMainlistTable(String mainlistTable)
    {
        this.mainlistTable = mainlistTable;
    }

    public String getMainlistTable()
    {
        return mainlistTable;
    }
    public void setMainlistName(String mainlistName)
    {
        this.mainlistName = mainlistName;
    }

    public String getMainlistName()
    {
        return mainlistName;
    }
    public void setMainlistType(String mainlistType)
    {
        this.mainlistType = mainlistType;
    }

    public String getMainlistType()
    {
        return mainlistType;
    }
    public void setMainlistDict(String mainlistDict)
    {
        this.mainlistDict = mainlistDict;
    }

    public String getMainlistDict()
    {
        return mainlistDict;
    }
    public void setMainlistIsvalid(String mainlistIsvalid)
    {
        this.mainlistIsvalid = mainlistIsvalid;
    }

    public String getMainlistIsvalid()
    {
        return mainlistIsvalid;
    }
    public void setMainlistNum(Long mainlistNum)
    {
        this.mainlistNum = mainlistNum;
    }

    public Long getMainlistNum()
    {
        return mainlistNum;
    }
    public void setMainlistUrl(String mainlistUrl)
    {
        this.mainlistUrl = mainlistUrl;
    }

    public String getMainlistUrl()
    {
        return mainlistUrl;
    }
    public void setMainlistMorevalid(String mainlistMorevalid)
    {
        this.mainlistMorevalid = mainlistMorevalid;
    }

    public String getMainlistMorevalid()
    {
        return mainlistMorevalid;
    }
    public void setMainlistIscondition(String mainlistIscondition)
    {
        this.mainlistIscondition = mainlistIscondition;
    }

    public String getMainlistIscondition()
    {
        return mainlistIscondition;
    }
    public void setMainlistCondition(String mainlistCondition)
    {
        this.mainlistCondition = mainlistCondition;
    }

    public String getMainlistCondition()
    {
        return mainlistCondition;
    }
    public void setI18nKey(String i18nKey)
    {
        this.i18nKey = i18nKey;
    }

    public String getI18nKey()
    {
        return i18nKey;
    }
    public void setOtherAttr(String otherAttr)
    {
        this.otherAttr = otherAttr;
    }

    public String getOtherAttr()
    {
        return otherAttr;
    }
    public void setEventsAttr(String eventsAttr)
    {
        this.eventsAttr = eventsAttr;
    }

    public String getEventsAttr()
    {
        return eventsAttr;
    }
    public void setMainlistMerger(String mainlistMerger)
    {
        this.mainlistMerger = mainlistMerger;
    }

    public String getMainlistMerger()
    {
        return mainlistMerger;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("mainlistId", getMainlistId())
                .append("baseBusinessNode", getBaseBusinessNode())
                .append("mainlistLabel", getMainlistLabel())
                .append("mainlistTable", getMainlistTable())
                .append("mainlistName", getMainlistName())
                .append("mainlistType", getMainlistType())
                .append("mainlistDict", getMainlistDict())
                .append("mainlistIsvalid", getMainlistIsvalid())
                .append("mainlistNum", getMainlistNum())
                .append("mainlistUrl", getMainlistUrl())
                .append("mainlistMorevalid", getMainlistMorevalid())
                .append("mainlistIscondition", getMainlistIscondition())
                .append("mainlistCondition", getMainlistCondition())
                .append("i18nKey", getI18nKey())
                .append("otherAttr", getOtherAttr())
                .append("eventsAttr", getEventsAttr())
                .append("mainlistMerger", getMainlistMerger())
                .append("baseBusinessNodeName", getBaseBusinessNodeName())
                .toString();
    }
}
